package com.spatio.serving.basic.service.template.core.component.service;



import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.spatio.serving.basic.service.template.common.domain.HistoryCaloriesDo;
import com.spatio.serving.basic.service.template.common.domain.MealDo;
import com.spatio.serving.basic.service.template.common.domain.MealStaticsDo;
import com.spatio.serving.basic.service.template.common.domain.mutliFoodRecordDo;
import com.spatio.serving.basic.service.template.common.dto.dify.DifyCommon;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Service
public interface MealService {

    boolean update_meal(MealDo meal);

    List<MealDo> queryBydate(Integer userId, LocalDate time);

    JSONArray queryFoodLog(BigInteger userId,String messageId);

    List<String> queryUrlLog(BigInteger userId, String conversationId);

    boolean completeRecord(BigInteger user_id, JSONObject completeFood) throws IOException;

    boolean deleteFood(BigInteger userId, String uuid);

    HistoryCaloriesDo queryHistory(BigInteger userId, LocalDate time);

    HistoryCaloriesDo queryByKind(BigInteger userId, LocalDate time, String kind);

    boolean changeFood(BigInteger userId, JSONObject changedFood);

    void recommendFood(BigInteger userId, JSONObject foodRecord, HttpServletResponse res) throws IOException;



}
